package com.tmsps.ne4Weixin.message.in;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;

/**
 * @author zhangwei 396033084@qq.com BaseMsg
 */
public abstract class InBaseMsg implements Serializable {

	private static final long serialVersionUID = 3310003395712379399L;

	private String ToUserName;
	// OpenID
	private String FromUserName;

	private String CreateTime;
	/**
	 * 被动响应消息类型 
	 * 1：text 文本消息 
	 * 2：image 图片消息 
	 * 3：voice 语音消息 
	 * 4：video 视频消息 
	 * 5：music 音乐消息
	 * 6：news 图文消息
	 * 7: event 事件
	 */
	private String MsgType;
	
	public String getToUserName() {
		return ToUserName;
	}

	public void setToUserName(String toUserName) {
		ToUserName = toUserName;
	}

	public String getFromUserName() {
		return FromUserName;
	}

	public void setFromUserName(String fromUserName) {
		FromUserName = fromUserName;
	}

	public String getCreateTime() {
		return CreateTime;
	}

	public void setCreateTime(String createTime) {
		CreateTime = createTime;
	}

	public String getMsgType() {
		return MsgType;
	}

	public void setMsgType(String msgType) {
		MsgType = msgType;
	}

	public String toJson() {
		return JSON.toJSONString(this);
	}
}
